//
//  Noeud.cpp
//  Taquin
//
//  Created by Benjamin Bouachour on 12/08/11.
//  Copyright 2011 Epitech. All rights reserved.
//

#include "Noeud.h"


Noeud::Noeud()
{}

Noeud::Noeud(int _x, int _y, string _name) : x(_x), y(_y), name(_name)
{}

Noeud::Noeud(const Noeud &copie)
{
    this->x = copie.x;
    this->y = copie.y;
    this->name = copie.name;
}

Noeud & Noeud::operator=(const Noeud& copie)
{
    this->x = copie.x;
    this->y = copie.y;
    this->name = copie.name;
    return *this;
}


Noeud::~Noeud()
{}

const pair<int, int> &Noeud::getCoord() const
{
    return make_pair(x, y);
}


const string &Noeud::getName()const
{
    return name;
}
